package com.tensquare.spit.dao;

import com.tensquare.spit.pojo.Spit;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.data.mongodb.repository.Query;

public interface SpitDao extends MongoRepository<Spit,String> {
    /**
     *  根据id查询，并分页------命名查询法
     */
    public Page<Spit> findByParentid(String p_id, Pageable pageable);
}
